package Bank_State_17;

public class RestrictedState extends AccountState {
    public void deposit(double amount){
        System.out.println("受限用户：存款" + amount + "元成功");
    }
    public void withdraw(double amount){
        System.out.println("受限用户：取款" + amount + "元成功");
    }
    public void computerInterest() {
        System.out.println("受限用户：计算利息失败");
    }
}
